treatInsecureOriginAsSecure

Adds the given origins to the white list. These origins will be treated as secure origins.

Each origin passed to this method should be an origin or hostname pattern up to eTLD+1. For example, the list may contain "http://foo.com", "http://foo.com:8000", "*.foo.com", "*.foo.*.bar.com", and "http://*.foo.bar.com", but not "*.co.uk", "*.com", or "test.*.com". Hostname patterns must contain a wildcard somewhere (so "test.com" is not a valid pattern) and wildcards can only replace full components ("test*.foo.com" is not valid).

Has the same effect as adding the --unsafely-treat-insecure-origin-as-secure switch.

Since

7.2